﻿<UserControl x:Class="CP.NLayer.Client.WpfClient.Common.CrudBar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:l="http://wpflocalizeextension.codeplex.com"
             l:LocalizeDictionary.DesignCulture=""
             l:ResxLocalizationProvider.DefaultAssembly="CP.NLayer.Resources"
             l:ResxLocalizationProvider.DefaultDictionary="UiResources"
             mc:Ignorable="d" 
             d:DesignHeight="78" d:DesignWidth="686">
    <Grid Margin="0,0,0,10">
        <Grid.Resources>
            <Style TargetType="{x:Type telerik:RadButton}">
                <Setter Property="Margin" Value="0,0,15,0"/>
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="Padding" Value="15,5,20,5" />
            </Style>
            <Style TargetType="{x:Type Image}">
                <Setter Property="Margin" Value="0,0,6,0"/>
                <Setter Property="Width" Value="16" />
            </Style>
            <Style TargetType="{x:Type TextBlock}">
                <Setter Property="VerticalAlignment" Value="Center"/>
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <StackPanel Orientation="Horizontal">
            <telerik:RadButton Command="{Binding AddCommand}">
                <WrapPanel>
                    <Image Source="/CP.NLayer.Client.WpfClient.Common;component/Images/add_24x24.png" />
                    <TextBlock Text="{l:Loc Add}" />
                </WrapPanel>
            </telerik:RadButton>
            <telerik:RadButton Command="{Binding EditCommand}">
                <WrapPanel>
                    <Image Source="/CP.NLayer.Client.WpfClient.Common;component/Images/edit_24x24.png" />
                    <TextBlock Text="{l:Loc Edit}" />
                </WrapPanel>
            </telerik:RadButton>
            <telerik:RadButton Command="{Binding DeleteCommand}">
                <WrapPanel>
                    <Image Source="/CP.NLayer.Client.WpfClient.Common;component/Images/delete_24x24.png" />
                    <TextBlock Text="{l:Loc Delete}" />
                </WrapPanel>
            </telerik:RadButton>
        </StackPanel>
        <telerik:RadButton Grid.Column="1"  Command="{Binding RefreshCommand}" Margin="0,0,0,0">
            <WrapPanel>
                <Image Source="/CP.NLayer.Client.WpfClient.Common;component/Images/cd_24x24.png" />
                <TextBlock Text="{l:Loc Refresh}" />
            </WrapPanel>
        </telerik:RadButton>
    </Grid>
</UserControl>
